package com.asset.crm.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@SuppressWarnings("serial")
@Table(name="action_field_value")
@Entity
public class ActionFieldValue implements Serializable{
	
	private Integer id;
	private ActionField actionField;
	private Action action;
	private String type;
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="action_field_value_seq")
	@SequenceGenerator(name="action_field_value_seq",sequenceName="action_field_value_id_seq",allocationSize=1)
	public Integer getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @return the actionField
	 */
	@ManyToOne
	@JoinColumn(name="field_id")
	public ActionField getActionField() {
		return actionField;
	}
	/**
	 * @param actionField the actionField to set
	 */
	public void setActionField(ActionField actionField) {
		this.actionField = actionField;
	}
	/**
	 * @return the action
	 */
	@ManyToOne
	@JoinColumn(name="action_id")
	public Action getAction() {
		return action;
	}
	/**
	 * @param action the action to set
	 */
	public void setAction(Action action) {
		this.action = action;
	}
	/**
	 * @return the type
	 */
	@Column(name="type")
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

}
